import { elInput, elSelect } from '@/components/BaseForm/predefine'
export const list = [
  { label: '姓名', prop: 'username', tag: elInput, defaultVal: '李明' },
  { label: '发布组织',
    prop: 'org_id',
    tag: elSelect,
    attributes: {
      options: [
        {
          label: '市场监督',
          value: '1'
        },
        {
          label: '行政管理',
          value: '2'
        }
      ]
    }

  },
  {
    label: '级联组件',
    prop: 'areaCode',
    tag: 'el-cascader',
    attributes: {
      options: [
        {
          value: 'ziyuan',
          label: '资源',
          children: [{
            value: 'axure',
            label: 'Axure Components'
          }, {
            value: 'sketch',
            label: 'Sketch Templates'
          }, {
            value: 'jiaohu',
            label: '组件交互文档'
          }]
        }
      ]
    }
  }
]

/**
 * 列表表格配置
 */
export const initTableConfig = () => [
  {
    label: '作者',
    prop: 'author',
    // sortable: 'custom',
    encrypt: 'username'
  },
  {
    label: '活动时间',
    prop: 'display_time'
  },
  {
    label: '标题',
    prop: 'title'
  },
  {
    label: '手机号码',
    prop: 'phone',
    encrypt: 'phone'
  },
  {
    label: '邮箱地址',
    prop: 'email',
    encrypt: 'email'
  },
  {
    label: '身份证号',
    prop: 'idCard',
    encrypt: 'idCard'
  }
]

// 操作按钮组
export const btnsGroup = [
  {
    label: '启用',
    type: 'start'
  },
  {
    label: '编辑',
    type: 'edit'
  },
  {
    label: '删除',
    type: 'delete'
  }
]

